package com.easy.mapper;

import com.easy.bean.User;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.lang.reflect.Member;
import java.util.List;

@Mapper
public interface UserDao {
int add(@Param("param") User user);
int del(@Param("id") Integer id);
int edit(@Param("param") User user);
User one(@Param("id") Integer id);
List<User> all(@Param("param") User user);
int pageCount(@Param("param") User user);
List<User> page(@Param("page") Page page,@Param("param") User user);
User getByName(@Param("username") String username);
User getByEmail(@Param("email") String email);
}
